import request from '@/utils/request'

// 查询岗位需求发布列表
export function listRequire(query) {
  return request({
    url: '/bus/require/list',
    method: 'get',
    params: query
  })
}

// 查询岗位需求发布详细
export function getRequire(requireId) {
  return request({
    url: '/bus/require/' + requireId,
    method: 'get'
  })
}

// 新增岗位需求发布
export function addRequire(data) {
  return request({
    url: '/bus/require',
    method: 'post',
    data: data
  })
}

// 修改岗位需求发布
export function updateRequire(data) {
  return request({
    url: '/bus/require',
    method: 'put',
    data: data
  })
}

// 删除岗位需求发布
export function delRequire(requireId) {
  return request({
    url: '/bus/require/' + requireId,
    method: 'delete'
  })
}
